import request from "../utils/sendRequest";
import { adminBaseUrl } from "../utils/config";
export function searchAllRepos(params = {}) {
  return request({
    url: "/api/v1/repos",
    params: params,
    method: "GET",
  });
}

export function searchAllBranch(params = {}) {
  return request({
    baseURL: adminBaseUrl,
    url: "/api/v1/repos",
    params: params,
    method: "GET",
  });
}

export function getAllbranch(params = {}) {
  return request({
    baseURL: adminBaseUrl,
    url: `${adminBaseUrl}/v1/app/branch`,
    params: params,
    method: "GET",
  });
}

export function getRepoInfoList() {
  return request({
    baseURL: adminBaseUrl,
    url: `${adminBaseUrl}/v1/app/reposList`,
    method: "POST",
  });
}
